package com.ssm.service.impl;

import com.ssm.dao.SManagerDao;
import com.ssm.pojo.SManager;
import com.ssm.service.SManagerService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SManagerServiceImpl implements SManagerService {
    @Autowired
    SManagerDao sManagerDao;

    public List<SManager> list() {
        return sManagerDao.list();
    }

    public int update(SManager sManager) {
        return sManagerDao.update(sManager);
    }

    public int update_pw(String amount,String spassword) {
        return sManagerDao.update_pw(amount,spassword);
    }

    public SManager findByAmount(String amount) {
        return sManagerDao.findByAmount(amount);
    }


}
